package com.windrift.springhibernate.controller;

import com.windrift.springhibernate.model.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by IntelliJ IDEA.
 * User: cy
 * Date: 5/06/12
 * Time: 9:55 AM
 * To change this template use File | Settings | File Templates.
 */
@Controller
@RequestMapping(value = "user")
public class UserController {
    @RequestMapping(method = RequestMethod.GET, params = "new")
    public String createUser (Model model) {
        model.addAttribute("user", new User());
        return "user/edit";
    }

}

abstract class A implements Runnable {

}
